package cn.edu.scau.cmi.liangzijian.factory;

public class BuildingFactory {
	public static MeatFactory getBuildingFactory(String factoryTypeString) {
		switch(factoryTypeString) {
		case "chicken factory":
			return new ChickenMeatFactory();
		case "pork factory":
			return new PorkMeatFactory();
		case "beef facotry":
			return new BeefMeatFactory();
		}
		
		return null;
	}
}
